import http from '@/server'

// 登陆
export async function login(data?: Login.LoginEntity) {
  return http.request({
    url: '/account/login',
    method: 'post',
    data
  })
}

// 获取状态与token
export async function getToken(data?: Login.LoginEntity) {
  return http.request({
    url: '/user/get_users_online_token_detail',
    method: 'post',
    data
  })
}

// 修改密码
export async function resetPwd(data?: Login.LoginEntity) {
  return http.request({
    url: '/account/change_password',
    method: 'post',
    data
  })
}
